package model

type BookAudio struct {
	Id         int    `json:"id" gorm:"primary_key;autoIncrement:true"`
	BookMenuId int `json:"bookMenuId" gorm:"column:book_menu_id;comment:课本ID;type:int(11);"`
	LessonNum  string `json:"lessonNum" gorm:"column:lesson_num;comment:章节;type:varchar(128);size:128;""`
	AudioUrl   string `json:"audioUrl" gorm:"column:audio_url;comment:音频链接;type:varchar(64);size:64;"`
	RecordTime string `json:"recordTime" gorm:"column:record_time;comment:记录时间;type:varchar(20);size:20;"`
    BookImg string `json:"bookImg" gorm:"column:book_img;comment:封面图片;type:varchar(256);size:256"`
}

func (BookAudio) TableName() string {
	return "book_audio"
}
